package com.bbcare.nutritious.plat.service;

import java.util.Map;

import com.bbcare.nutritious.plat.entity.PtBloodsugarRecord;

/**
 * 
 * @name:         IBloodSugarService.java
 * @author:       tao
 * @createTime:   2017年7月3日
 * @description:  血糖服务接口类
 * @modify:
 *
 */
public interface INewBloodSugarService {
	/**
	 * 
	 * @param bloodsugarRecord
	 * @return
	 * @throws Exception
	 */
	Map<String, Object> addOrUpdateById(PtBloodsugarRecord bloodsugarRecord) throws Exception;
	 /**
     * 通过id删除血糖数据
     */
	Map<String, Object> delBloodsugarRecordById(String id) throws Exception;
	/**
	 * 分页查询血糖数据
	 * @param bloodsugarRecord
	 * @return
	 * @throws Exception 
	 */
	Map<String, Object> listbloodsugarForPage(PtBloodsugarRecord bloodsugarRecord) throws Exception;
	/**
	 * 通过userid查询血糖
	 * @param bloodsugarRecord
	 * @return
	 * @throws Exception
	 */
	Map<String, Object> listbloodsugar(PtBloodsugarRecord bloodsugarRecord)throws Exception;
	/**
	 * 通过userid+testDate或id查询血糖数据
	 * @param bloodsugarRecord
	 * @return
	 * @throws Exception
	 */
	Map<String, Object> getbloodsugar(PtBloodsugarRecord bloodsugarRecord)throws Exception;
	Map<String, Object> listbloodsugarForPagePC(
			PtBloodsugarRecord bloodsugarRecord) throws Exception;
	
	
}
